//
//#ifndef PROJECTZ_NUSER_NCOMMAND_NMATCHING_CS_DUNGEON_MOB_CREATE_H_
//#define PROJECTZ_NUSER_NCOMMAND_NMATCHING_CS_DUNGEON_MOB_CREATE_H_
//
//#include "../../engine.h"
//
//#include "../../User.h"
//#include "../../Data.h"
//
//#include "../../NLogic/Static.h"
//
//namespace ProjectZ { namespace NCommand { namespace NMatching {
//
//class CS_DUNGEON_MOB_CREATE
//{
//public:
//	static void OnExecute(User * pUser, ::Network::Packet * pPacket)
//	{
//		NLogic::Space * pSpace = pUser->GetSpace();
//		if (NULL == pSpace)
//		{
//			DEBUGLOG("WARNING: CS_DUNGEON_MOB_CREATE GID %d, pSpace is NULL");
//			return;
//		}
//
//		PREPARE_PACKET;
//
//		int x = 0;
//		int y = 0;
//		int tid = 0;
//		int level = 0;
//		int legend = 0;
//		int degree = 0;
//		int gid = 0;
//		pPacket->ParseMsg("%2d%2d%2d%2d%c%2d", &x, &y, &tid, &level, &legend, &degree);
//
//		gid = pSpace->GetData()._monster_count + 1;
//
//		int dungeon_mode = pSpace->GetData()._difficulty;
//		int player_count = pSpace->GetData()._currentUser;
//		int table_id = pSpace->GetData()._table_id;
//		bool bBoss = (pSpace->GetData()._boss_tid == tid) ? true : false;
//
//		int monster_hp = ::ProjectZ::NGame::GetMonsterHP(level, dungeon_mode, table_id, player_count, legend, bBoss);
//
//		::Network::Packet * pNoti = ::Network::GETPACKETPOOL()->SEND_NEW();
//		pNoti->MsgCat("%2d%2d%2d%2d%c%2d%d%d", x, y, tid, level, legend, degree, gid, monster_hp);
//		pNoti->MakePacket(CMD_SN_DUNGEON_MOB_CREATE);
//		pSpace->SendAll(pNoti);
//
//		//
//		//::ProjectZ::NGame::CMonster *monster = new ::ProjectZ::NGame::CMonster;
//		NLogic::Monster::Data clsData;
//		clsData.hp = monster_hp;
//		clsData.map_index = -1;
//		clsData.x = x;
//		clsData.y = y;
//		clsData.tid = tid;
//		clsData.level = level;
//		clsData.islegend = legend;
//		clsData.degree = degree;
//		clsData.isslave = 0;
//
//		NLogic::Monster * pMonster = NLogic::Static::Instance().GETMONSTERPOOL()->NEW();
//		pMonster->Open(clsData);
//
//		pSpace->AddMonster(pMonster);
//	}
//};
//
//} /*NMatching*/ } /*NCommand*/ } /*ProjectZ*/
//
//
//#endif /* PROJECTZ_NUSER_NCOMMAND_NMATCHING_CS_DUNGEON_MOB_CREATE_H_ */
